<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/js/jqselect.js"></script>
    <script type="text/javascript" src="/Show/Admin/Public/js/jquery-3.1.1.min.js"></script>
    <title>用户列表</title>
  </head>
  <body>
    <div class="mainbox">
          <form action="{$smarty.const.__CONTROLLER__}/delete" method="post">
          <div class="tablebox">            
            <table class="table" >
              <tr class="one">
                <td>
                <input type="checkbox" id="selectAll">
                </td>
                <td>ID</td>
                <td>用户名</td>
                <td>电子邮箱</td>
                <td>联系电话</td>
                <td>角色</td>
                <td>注册时间</td>
                <td>最后登陆时间</td>
                <td>最后登陆ip</td>
                <td>状态</td>
                <td>操作</td>
              </tr>
              {section name=n loop=$list}
              <tr>
                <td><input type="checkbox" name="id[]" value="{$list[n].user_id}"></td>
                <td>{$list[n].user_id}</td>
                <td>{$list[n].user_name}</td>
                <td>{$list[n].infor_email}</td>
                <td>{$list[n].infor_tel}</td>
                <td>{$list[n].role_name}</td>
                <td>{$list[n].user_time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                <td>{$list[n].user_lasttime|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                <td>{$list[n].user_lastip}</td>
                <td>{if $list[n].user_state==0}待审核{else}正常{/if}</td>
                <td>
                    <a href="#" onclick="if(confirm('确定删除？'))location.href='{$smarty.const.__CONTROLLER__}/delete/id/{$list[n].user_id}';"><img src="/Show/Admin/Public/image/del.jpg" class="pit" title="删除"></a>
                    <a href="#" onclick="location.href='{$smarty.const.__CONTROLLER__}/xiugai/id/{$list[n].user_id}'" ><img src="/Show/Admin/Public/image/edi.jpg" class="pit" title="编辑"></a>     
                </td>
              </tr>
              {/section}
            </table>          
          </div>
          </form>
          <div class="ope">
            <input type="submit" name="del" value="删除">
          </div>
          <div class="page">
           {$page}
          </div>
    </div>
  </body>
</html>